<template>
  <div id="app">
    <router-view></router-view>
    <!-- 全局AI聊天组件 -->
    <AiChat />
  </div>

</template>

<script setup>
import AiChat from '@/components/AiChat.vue'
// 这里可以添加需要的逻辑
</script>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#app {
  min-height: 100vh;
  background: white;
  position: relative;
  overflow: hidden;
  cursor: default;
}

#app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.router-view-container {
  position: relative;
  z-index: 1;
}

/* 全局禁用文本选择 */
* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 允许输入框文本选择 */
input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  cursor: text !important;
}

/* 确保按钮和链接有正确的光标 */
button, 
a, 
[role="button"] {
  cursor: pointer !important;
}
</style>